import renderTemplate from "./renderTemplate"
import parseTemplateToTokens from "./parseTemplateToTokens"
window.Mustache = {
  render: function (templateStr, data) {
    console.log("我是render():", templateStr, data)
    let tokens = parseTemplateToTokens(templateStr)
    let result = renderTemplate(tokens, data)
    return result
  }
}
